package com.casems.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.sql.Timestamp;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author tch
 * @since 2023-05-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Cases implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 患者id
     */
    private Integer userid;

    /**
     * 患者病史
     */
    private String patientHistory;

    /**
     * 患者体温
     */
    private Float temperature;

    /**
     * 患者呼吸频率
     */
    @TableField("RR")
    private Integer rr;

    /**
     * 患者体重
     */
    private Float weight;

    /**
     * 患者CT检查结果：正常、异常、恶化	
     */
    @TableField("CT")
    private String ct;

    /**
     * 诊断结果：轻症、普通型、重症、危重症、无症状
     */
    private String diagnosis;

    /**
     * 治疗方案：居家隔离、住院隔离、输氧治疗、icu治疗
     */

    private String treatment;

    /**
     * 第几次感染
     */
    private String episode;

    /**
     * 核酸检测结果
     */
    @TableField("PCR")
    private String pcr;

    /**
     * 治疗结果：痊愈、好转、死亡
     */
    private String outcome;

    /**
     * 病案创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createtime;
}
